using UnityEngine;
using System.Collections;

public class orbit : MonoBehaviour {
	public GameObject sun;
	public int orbitSpeed;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		transform.RotateAround(sun.transform.position, Vector3.forward,orbitSpeed * Time.deltaTime);
		transform.RotateAround(sun.transform.position, Vector3.up,orbitSpeed * Time.deltaTime);
		//transform.Rotate((Vector3.up*sped) * Time.deltaTime);
		
		}
}
